package com.ghj.demo3;

/**
 * @author ghj
 * @create 2023-06-17 20:48
 */
public class Client {
    public static void main(String[] args) {
        Host host = new Host();
        ProxyInvocationHandler proxyInvocationHandler = new ProxyInvocationHandler();
        proxyInvocationHandler.setHire(host);
        Hire proxy = (Hire) proxyInvocationHandler.getProxy();
        proxy.rent();
    }
}
